using SqlSugar;

namespace LuUpgrade.Model
{
    [SugarTable("employee")]
    public class EmployeeEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "username")] public string? Username { get; set; }

        [SugarColumn(ColumnName = "age")] public int Age { get; set; }

        [SugarColumn(ColumnName = "gender")] public string? Gender { get; set; }

        [SugarColumn(ColumnName = "province")] public string? Province { get; set; }

        [SugarColumn(ColumnName = "email")] public string? Email { get; set; }

        [SugarColumn(ColumnName = "phone")] public string? Phone { get; set; }

        [SugarColumn(ColumnName = "education")]
        public string? Education { get; set; }

        [SugarColumn(ColumnName = "company_id")]
        public int CompanyId { get; set; }

        [SugarColumn(ColumnName = "ip")] public string? Ip { get; set; }

        [SugarColumn(ColumnName = "created")] public DateTime Created { get; set; }
    }

    [SugarTable("company")]
    public class CompanyEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "公司编号")]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "name", ColumnDescription = "公司名称")]
        public string? Name { get; set; }

        [SugarColumn(ColumnName = "business_type", ColumnDescription = "业务类型")]
        public string? BusinessType { get; set; }

        [SugarColumn(ColumnName = "asset", ColumnDescription = "公司资产")]
        public int Asset { get; set; }

        [SugarColumn(ColumnName = "addr", ColumnDescription = "公司地址")]
        public string? Address { get; set; }

        [SugarColumn(ColumnName = "created", ColumnDescription = "创建时间")]
        public DateTime Created { get; set; }
    }
}